<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Ramda</title>
</head>
<body>
    <script src="../ramda.min.js"></script>
    <script>
        let isQueen = R.propEq('rank', 'Q'); // rank 属性所对应值为: Q
        let isSpade = R.propEq('suit', '♠︎');
        let allPass = R.allPass([isQueen, isSpade]);
        console.log( allPass({rank: 'Q', suit: '♠︎'}) ); // true
        console.log( allPass({rank: 'Q', suit: 'm'}) ); // false
    </script>
</body>
</html>